package com.tianqu.tms.core.security;

import java.util.List;

import com.tianqu.tms.core.exception.TmsException;
import com.tianqu.tms.entity.User;

/**
 * 
 * @author liugang
 *
 */
public class TmsUserProfileFactoryImpl extends TmsUserProfileFactory {
	
	public TmsUserProfile getUserProfile(String userId) throws TmsException {
		TmsUserProfile profile= new TmsUserProfile();
		profile.setLoginId(userId);
		return profile;
	}
	
	
	public List getTmsRole(int companyId, int baId, int uniqueId) throws TmsException {
//		List role= TmsRole.getRoleListByUniqueId(companyId,baId,uniqueId);
		return null;
	}

	@Override
	public User getTmsUser(String userId, String password) throws TmsException {
		User user = User.getUserProfileByLoginid(userId,password);	
		return user;
	}
}
